package com.gaokuo.es.compose;

import org.elasticsearch.index.query.BoolQueryBuilder;

/**
 * 根据规则将节点转化为查询体
 */
public interface IEsComposeSearch {

    /**
     * 获取查询语句
     * @param composeNode 嵌套节点
     * @return ~
     */
    String getBoolQueryStr(ComposeNestedNode composeNode);

    /**
     * 获取BoolQueryBuilder
     * @param composeNode 嵌套节点
     * @return ~
     */
    BoolQueryBuilder getBoolQuery(ComposeNestedNode composeNode);
}
